<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html id="gray_html">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
        <meta content="telephone=no" name="format-detection">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>易美佳人</title>
        <link rel="stylesheet" type="text/css" href="/meirongtest/Public/Wechat/api/css/index.css"/>
	</head>
<body>
	<header id="header">
		<span id="goback_icon" onclick="history.back(-1)"></span>
		<span>选择优惠券</span>
	</header>
	<div class="container">
		<p id="usecoupon_tip">注：一次订单只能使用一张优惠券，不可叠加使用</p>
		<ul id="canuse_coupon">
		<?php if(is_array($couponList)): $i = 0; $__LIST__ = $couponList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="can_use">
			
				<div class="coupon_box"><span class="coupon_value"><?php echo ($vo["price"]); ?>元</span><br/><span class="coupon_tip">优惠券</span><br/><span class="coupon_limit">满<?php echo ($vo["coupon_rule"]); ?>元可用</span></div>
				<div class="coupon_info">
					<span class="coupon_name"><?php echo ($vo["coupon_name"]); ?></span>
					<?php if($vo["etime"] != 0): ?><span class="coupon_time">有效期至: <?php echo (date("Y-m-d",$vo["etime"])); ?></span><?php endif; ?>
				</div>
				<input type="hidden" class="select_coupon" value="<?php echo ($vo["cid"]); ?>">
				<input type="hidden" class="select_mycoupon" value="<?php echo ($vo["id"]); ?>">
				<div class="clear"></div>
			</li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</div>
	<script type="text/javascript" src="/meirongtest/Public/Wechat/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="/meirongtest/Public/Wechat/js/global.js"></script>
    <script type="text/javascript" src="/meirongtest/Public/Wechat/api/js/index.js"></script>
    <script language="javascript">
    	 $(document).ready(index_obj.use_coupon);
    </script>
</body>
</html>